package com.linb.pan.server.modules.file.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ApiModel(value = "文件重命名参数")
public class UpdateFilenamePO implements Serializable {

    private static final long serialVersionUID = -1911189137445521573L;

    @ApiModelProperty(value = "更新的文件id", required = true)
    @NotBlank(message = "文件id不能为空")
    private String fileId;

    @ApiModelProperty(value = "新的文件名称", required = true)
    @NotBlank(message = "新的文件名称不能为空")
    private String newFilename;

}
